package com.sun.jdk.stream;

import java.util.stream.Stream;

/**
 * Stream接口的常用方法
 */
public class StreamTest06Count {
    public static void main(String[] args) {
        
        // 2. count方法
        long count = Stream.of("a1", "a2", "a3").count();
        System.out.println(count);
        
    }
}
